import request from '@/utils/request'
// import {AddResponse} from '@/api/stuInfo/type'

enum API {
  //查全部的班级信息
  GETCLASSESINFO = '/classes/classesInfoList/',
  //根据年级查询班级信息
  GETCLASSESINFOBYGRADE = '/classes/classesInfoListDistribute/',
}

// 获取所有班级信息
export const reqClassesPageInfo = () => request.get(API.GETCLASSESINFO)

// 根据年级查询班级信息
export const reqClassesInfoListDistribute = (gradeLevel: number) => request.get(API.GETCLASSESINFOBYGRADE + gradeLevel)